//
//  CartoonCell.m
//  BuffetNews
//
//  Created by weidawei on 14/11/9.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "CartoonCell.h"

@implementation CartoonCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imgView];
        [_imgView release];
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:self.title];
        [_title release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imgView.frame = CGRectMake(0, self.contentView.frame.size.height / 11, self.contentView.frame.size.width, self.contentView.frame.size.height / 11 * 10);
    self.title.frame = CGRectMake(10, 0, self.contentView.frame.size.width, self.contentView.frame.size.height / 11);
    self.title.font = [UIFont fontWithName:@"Helvetica-Bold" size:18];
}


- (void)dealloc
{
    [_imgView release];
    [_title release];
    [super dealloc];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
